<template>
	<div>
		<el-form-item :label="$t('designer.setting.bindField')">
			<el-input type="text" v-model="thisOptionModel.bindField"></el-input>
		</el-form-item>
	</div>
</template>

<script>
export default {
	name: "contentHeight-editor",
	mixins: [],
	props: {
		designer: Object,
		selectedWidget: Object,
		optionModel: Object,
	},
	data() {
		return {
			thisOptionModel:this.optionModel,
			//subFormChildWidgetFlag: false,
			subFormChildWidgetFlag: true,
		}
	},
	created() {

	},
	watch: {
		'optionModel': {
			handler(val) {
				if (val) {
					this.thisOptionModel = val
				}
			}
		},
	},
	mounted() {
		this.designer.handleEvent('field-selected', (parentWidget) => {
			this.subFormChildWidgetFlag = !!parentWidget && (parentWidget.type === 'sub-form');
			//console.log('subFormChildWidgetFlag', this.subFormChildWidgetFlag)
		})
	}
}
</script>

<style scoped>

</style>
